package com.example.yichuangyun.config;

import com.example.yichuangyun.application.MyApplication;
import com.example.yichuangyun.utils.AppUtils;

/**
 * 常量类
 */
public class Constant {

    public static final int SUCCESS = 1;

    public static boolean isSearch = false;
    public static final int DELAY_CLICK = 600;
    /**
     * 版本号
     */
    public static final String VERSION = "V" + AppUtils.getVersionName(MyApplication.getInstance());
    public static final String PACKAGE = MyApplication.getInstance().getPackageName();
    public static final String APP_PROVIDER = PACKAGE + ".provider";

    public static final String UMENG_APP_KEY = "63db6aacba6a5259c4f8035e";

    public static final int pageSize = 10;
    public static final int pageSize20 = 20;

    public static final String flagKey = "flag";

    /**
     * 是否退出登录
     */
    public static boolean isLogout = false;

    /**
     * 商机id
     */
    public static final String businessIdKey = "businessId";
    public static final String businessTypeKey = "businessType";
    public static final String businessStepStatusKey = "businessStepStatus";
    public static int businessType = 2;

    public static final String modelKey = "model";
    public static final String listKey = "list";
    public static final String nameKey = "name";
    public static final String urlKey = "url";
    public static final String creditNoKey = "creditNo";
    public static final String sexKey = "sex";
    public static final String phoneKey = "phone";
    public static final String userIdKey = "userId";
    public static final String idKey = "id";
    public static final String requestNoKey = "requestNo";
    public static final String telKey = "tel";
    public static final String phoneNum = "phoneNum";
    public static final String clientIdKey = "clientId";
    public static final String isShowedKey = "isShowed";
    public static final String isEditProductKey = "isEditProduct";
    public static final String typeKey = "type";
    public static final String contactTypeKey = "contactType";
    public static final String categoryKey = "category";
    public static final String eidKey = "eid";
    public static final String positionKey = "position";
    public static final String contactSourceTypeKey = "contactSourceType";
    public static final String keywordsKey = "keywords";
    public static final String poolIdKey = "poolId";
    public static final String addressKey = "address";
    public static final String reportAddressKey = "reportAddress";
    public static final String latitudeKey = "latitude";
    public static final String longitudeKey = "longitude";
    public static final String orderIdKey = "orderId";
    public static final String orderNoKey = "orderNo";
    public static final String fromKey = "from";
    public static final String durationKey = "duration";

    /**
     * 消息推送过来的商机id
     */
    public static String pushBusinessId = "";
    /**
     * 默认1:商机，预留字段
     */
    public static int pushServiceType = 1;

    /**
     * 刷新今日统计数据
     */
    public static final String refreshTodayData = "refreshTodayData";

    /**
     * 跟进方式
     */
    public static final String followType = "follow_type";

    /**
     * 刷新商机列表
     */
    public static final String refreshBusinessList = "refreshBusinessList";
    /**
     * 刷新主页商机列表
     */
    public static final String refreshMainBusinessList = "refreshMainBusinessList";
    /**
     * 刷新商机详情
     */
    public static final String refreshInformationDetail = "refreshInformationDetail";
    /**
     * 刷新跟进列表
     */
    public static final String refreshFollowList = "refreshFollowList";
    /**
     * 刷新联系人列表
     */
    public static final String refreshContactsList = "refreshContactsList";
    /**
     * 刷新联系人详情页-商机记录
     */
    public static final String refreshContactDetailsBusinessList = "refreshContactDetailsBusinessList";
    /**
     * 刷新联系人详情页-资料详情
     */
    public static final String refreshContactDetailsData = "refreshContactDetailsData";
    /**
     * 刷新企业列表
     */
    public static final String refreshCompanyList = "refreshCompanyList";
    /**
     * 刷新收藏列表
     */
    public static final String refreshCollectList = "refreshCollectList";
    /**
     * 刷新企业联系方式
     */
    public static final String refreshCompanyContactsWay = "refreshCompanyContactsWay";
    /**
     * 刷新自主信息列表
     */
    public static final String refreshCustomList = "refreshCustomList";
    /**
     * 刷新订单列表
     */
    public static final String refreshOrderList = "refreshOrderList";
    /**
     * 刷新搜索订单列表
     */
    public static final String refreshSearchOrderList = "refreshSearchOrderList";
    /**
     * 刷新订单跟进列表
     */
    public static final String refreshOrderFollowList = "refreshOrderFollowList";

    /**
     * 退出登录
     */
    public static final String logout = "logout";
    /**
     * 关闭订单详情页
     */
    public static final String closeOrderDetails = "closeOrderDetails";

    // -------------------------------------------埋点-----------------------------------------------
    /**
     * 首页-通讯录
     */
    public static final String HOME_ADDRESS_BOOK = "home_address_book";

    /**
     * 首页-新增商机
     */
    public static final String HOME_ADD_BUSINESS = "home_add_business";

    /**
     * 首页-今日统计
     */
    public static final String HOME_TODAY_DATA = "home_today_data";

    /**
     * 商机-新增商机
     */
    public static final String BUSINESS_ADD_BUSINESS = "business_add_business";

    /**
     * 保存商机
     */
    public static final String SAVE_BUSINESS = "save_business";

    /**
     * 修改商机
     */
    public static final String SAVE_EDIT_BUSINESS = "save_edit_business";

    /**
     * 商机列表添加跟进
     */
    public static final String LIST_ADD_FOLLOW = "list_add_follow";

    /**
     * 商机列表拨打电话
     */
    public static final String LIST_CALL = "list_call";

    /**
     * 商机筛选
     */
    public static final String SCREEN_BUSINESS = "screen_business";

    /**
     * 商机排序
     */
    public static final String SORT_BUSINESS = "sort_business";

    /**
     * 商机详情页拨打电话
     */
    public static final String DETAILS_CALL = "details_call";

    /**
     * 详情页添加跟进
     */
    public static final String DETAILS_ADD_FOLLOW = "details_add_follow";

    /**
     * 详情页编辑商机
     */
    public static final String DETAILS_EDIT = "details_edit";

    /**
     * 详情页设置共享人
     */
    public static final String DETAILS_SET_SHARE_PERSON = "details_set_share_person";

    /**
     * 详情页丢单
     */
    public static final String DETAILS_LOST_ORDER = "details_lost_order";

    /**
     * 保存联系人
     */
    public static final String SAVE_CONTACTS = "save_contacts";

    /**
     * 新增联系人
     */
    public static final String ADD_CONTACTS = "add_contacts";

    /**
     * 生成订单
     */
    public static final String CREATE_ORDER = "create_order";

    /**
     * 订单列表
     */
    public static final String ORDER_LIST = "order_list";

    /**
     * 订单详情
     */
    public static final String ORDER_DETAIL = "order_detail";

    /**
     * 订单添加跟进
     */
    public static final String ADD_ORDER_FOLLOW = "add_order_follow";

    /**
     * 订单款项确认
     */
    public static final String ORDER_MONEY_CONFIRM = "order_money_confirm";

    /**
     * 已经转换成文字
     */
    public static final String ALREADY_TRANS_TEXT = "already_trans_text";
}
